{extend name='public/list'/}
<!-- 头部 -->
{block name='head'}
{if $is_config}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this"><a href="/admins/setting/index" title="设置列表">设置列表</a></li>
        <li><a href="/admins/config/index" title="配置选项">配置选项</a></li>
    </ul>
</div>
<div class="layui-tab-content">
    {/if}
    {/block}
    <!-- 表单字段 -->
    {block name='fields'}
    <div class="layui-inline">
        <label class="layui-form-label">字段名</label>
        <div class="layui-input-block">
            <input type="text" name="names" value="" placeholder="请输入字段名" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">字段值</label>
        <div class="layui-input-block">
            <input type="text" name="values" value="" placeholder="请输入字段值" class="layui-input">
        </div>
    </div>
    {/block}
    <!-- 底部 -->
    {block name='bottom'}
    {if $is_config}
</div>
{/if}
{/block}
<!-- js -->
{block name='js'}
<script>
    var cols = [
        [{
            checkbox: true,
            fixed: 'left',
        }, {
            field: 'id',
            title: 'ID',
            sort: true,
            width: 80,
        }, {
            field: 'names',
            title: '字段名',
            width: '20%',
            minWidth: '100px',
            sort: true,
        }, {
            field: 'values',
            title: '字段值',
        }, {
            title: '操作',
            align: 'center',
            width: 120,
            toolbar: '#databar'
        }]
    ];
</script>
{/block}